package redPacket;

import lombok.val;
import lombok.var;

import java.util.ArrayList;

/**
 * @description: ToDo
 * @author: marin
 * @time: 2020/7/3 9:10
 */
public class RedPacketDemo {
    public static void main(String[] args) {
      /*  RedPacketFrame redPacketFrame = new RedPacketFrame("普通红包");
        CommonPacket commonPacket = new CommonPacket();
        redPacketFrame.setOpenMode(commonPacket);
        redPacketFrame.setOwnerName("boss");
        ArrayList<Integer> integers = redPacketFrame.openMode.divide(10,9);
        for (Integer i:integers) {
            System.out.println("红包金额分别是："+i);
        }*/

        RedPacketFrame redPacketFrame = new RedPacketFrame("普通红包");
        RandomPacket randomPacket = new RandomPacket();
        redPacketFrame.setOpenMode(randomPacket);
        ArrayList<Integer> in = redPacketFrame.openMode.divide(100,10);
        for (Integer i:in) {
            System.out.println("红包金额分别是："+i);
        }
    }
}
